{include file="public:header" /}
<!--关联链接列表-->
<div class="pad_lr_10">
    <form name="searchform" action="{:url('Keyword/index')}"  method="get" >
        <table width="100%" cellspacing="0" class="search_form">
            <tbody>
            <tr>
                <td>
                    <div class="explain_col">
                        &nbsp;&nbsp;状态:
                        <select name="status">
                            <option value="">-所有-</option>
                            <option value="1" {eq name="search['status']" value="1"}selected="selected"{/eq}>启用</option>
                            <option value="0" {eq name="search['status']" value="0"}selected="selected"{/eq}>禁用</option>
                        </select>
                        &nbsp;&nbsp;关键词 :
                        <input name="keyword" type="text" class="input-text" size="25" value="{$search.keyword}" />
                        <input type="submit" name="search" class="btn" value="搜索" />
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
    <div class="J_tablelist table_list" data-acturi="{:url('Keyword/ajaxEdit')}">
		<table width="100%" cellspacing="0">
        <thead>
          <tr>
            <th width="25"><input type="checkbox" name="checkall" class="J_checkall"></th>
            <th width="10">ID</th>
            <th width="150">关联词</th>
            <th width="80">替换词</th>
            <th>url</th>
            <th width="60"><span data-tdtype="order_by" data-field="status">状态</span></th>
            <th width="120">操作</th>
          </tr>
        </thead>
        <tbody>
          {volist name="list" id="val"}
          <tr>
            <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
            <td align="center">{$val.id}</td>
            <td align="center">
                <span data-tdtype="edit" data-field="word" data-id="{$val.id}" class="tdedit">{$val.word}</span>
            </td>
            <td align="center"><span data-tdtype="edit" data-field="replace_word" data-id="{$val.id}" class="tdedit">{$val.replace_word}</span></td>
            <td align="center">{$val.url}</td>
           <td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{$val.status}" src="__IMG__/toggle_{if condition="$val.status eq 0"}disabled{else/}enabled{/if}.gif" /></td>
            <td align="center">
                {:rights($options,$val['id'],$val['word'])}
            </td>
          </tr>
          {/volist}
        </tbody>
      	</table>
		<div class="btn_wrap_fixed">
    		<label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
            <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:url('Keyword/delete')}" data-name="id" data-msg="确定要删除所选记录么？" value="删除" />
    		<div id="pages">{$pages}</div>
    	</div>
    </div>
</div>
{include file="public:footer" /}
</body>
</html>